package com.Cheng.controller;

import com.Cheng.pojo.QD;
import com.Cheng.service.QDService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author Cheng
 * @Date 2022/4/10 16:40
 */
@Controller
@RequestMapping("/qd")
public class QDController {
    @Autowired
    @Qualifier("QDServiceImpl")
    private QDService qdService;



    @RequestMapping("/toAddQD")
    public String toAddPQD() {
        return "addQD";
    }

    @RequestMapping("/addQD")
    public String addPQD(QD qd) {
        System.out.println(qd);
        qdService.addQD(qd);
        return "addQD";
    }


}